//
//  VideoModel.m
//  Mango
//
//  Created by lanou3g on 16/5/6.
//  Copyright © 2016年 lanou3g. All rights reserved.
//

#import "VideoModel.h"

@implementation VideoModel

- (CGFloat)cellHeight {
    if (!_cellHeight) {
        CGSize size = CGSizeMake([UIScreen mainScreen].bounds.size.width - 16, MAXFLOAT);
        NSDictionary *dict = @{NSFontAttributeName :[UIFont systemFontOfSize:17]};
        CGFloat titleHeight = [self.title boundingRectWithSize:size options:(NSStringDrawingUsesLineFragmentOrigin) attributes:dict context:nil].size.height;
        self.videoFrame = CGRectMake(0, 8 + titleHeight + 8, [UIScreen mainScreen].bounds.size.width, 281);
        _cellHeight = 8 + titleHeight + 8 + 281 + 8 + 16 + 10;
    }
    return _cellHeight;
}
@end
